package functionReference;

interface MyCompare<T,P>{
	public P bigAndSmall(T t1, T t2);
}

public class NormalFunctionReference {
	public static void main(String[] args) {
		MyCompare<String,Integer> mc = String :: compareTo;
		int result = mc.bigAndSmall("abc", "def");
		System.out.println(result);
		
		MyCompare<String,Boolean> mc2 = String :: equals;
		boolean result2 = mc2.bigAndSmall("abc", "abc");
		System.out.println(result2);
	}
}
